import { createSlice } from "@reduxjs/toolkit"
import {
    AppOutline,
    UnorderedListOutline,
    UserOutline,
} from 'antd-mobile-icons'
import { Badge, TabBar } from 'antd-mobile'
export const tabSlice = createSlice({
    name: "tabSlice",
    initialState: {
        tab: [
            {
                key: '',
                title: '首页',
                icon: <AppOutline />,
                badge: Badge.dot,
            },
            {
                key: '/layout/list',
                title: '列表',
                icon: <UnorderedListOutline />,
                badge: '5',
            },
            {
                key: '/layout/my',
                title: '我的',
                icon: <UserOutline />,
            },
        ]
    }
})
export default tabSlice.reducer